#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int removeDuplicates(int* nums, int numsSize)
{
    int i = 0;
    int j = 0;
    int count = numsSize;
    for (i = 0; i < numsSize - 2; i++)
    {
        while (nums[i] == nums[i + 1] == nums[i + 2])
        {
            for (j = i + 2; j < numsSize - 1; j++)
            {
                nums[j] = nums[j + 1];
            }
            count--;
        }
    }
    return count;
}
int main()
{
    print("*****************");
    return 0;
}